//
//  BK_Calendar_Tool.h
//  bestkeep
//
//  Created by TOPTEAM on 2017/2/27.
//  Copyright © 2017年 utouu. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void (^BK_Calendar_Callback)(BOOL isSuccess, id obj,NSError* error);
@interface BK_Calendar_Tool : NSObject

+(void)BK_Calendar_ThsalebetweenDays:(BK_Calendar_Callback)CallBack WithReserveId:(NSString *)reserveId;//查询日历可卖日期区间

+(void)BK_ListCalendar:(BK_Calendar_Callback)CallBack WithReserveId:(NSString *)reserveId andMonth:(NSString *)month;//查询sku指定月份的囤货数据


+(void)BK_AddShopping:(BK_Calendar_Callback)CallBack WithIsOK:(BOOL)isOK  andShoppingCarParamDic:(NSDictionary*)paramDic  andLimitBuyCount:(NSInteger)limitBuyCount;//添加购物车

+(void)BK_Strongbid:(BK_Calendar_Callback)CallBack WithParamDic:(NSDictionary*)paramDic;//查询sku根据日期的匹配囤货数量和价格

+(void)BK_Bid:(BK_Calendar_Callback)CallBack WithParamDic:(NSDictionary*)paramDic andMatchNum:(NSInteger)matchingNumberIndex;//查询sku根据日期出价的匹配囤货数量

+ (NSString *)BK_nextMonth:(NSDate *)date;
+ (BOOL)isCurrentMonth:(NSDate *)date;//判断日期是否在本月
+ (BOOL)IsInTheSameMonth:(NSDate *)date1 :(NSDate *)date2;//判断两个日期是否在同一个月



/**
 *  计算字符串里有多少个子串
 *
 *  @param s <#s description#>
 *  @param c <#c description#>
 *
 *  @return <#return value description#>
 */
+(NSInteger)countChar:(NSString *)s cchar:(NSString*)c;//计算字符串里有多少个子串


@end
